set(LIBQR "qr")

find_library(LIBCROWN_LIB libcrownbarcode.so
	PATHS "${PROJECT_SOURCE_DIR}/qr/lib"
	NO_DEFAULT_PATH
)

file(GLOB QR_SRC_FILES "*.h" "*.cc"
    "./include/*.h"
)

add_library(${LIBQR} SHARED
    "${QR_SRC_FILES}"
)

target_include_directories(${LIBQR}
    PUBLIC
        "./include"
        "."
)

target_link_libraries(${LIBQR}
	PRIVATE
	${LIBCROWN_LIB}
)
